package model;

import java.util.HashSet;

/**
 * 
 * @author Mads Nielsen
 */
public class DeliveryCollection {

	private HashSet<Delivery> deliveries;
	private static DeliveryCollection instance;

	private DeliveryCollection() {
		deliveries = new HashSet<Delivery>();
	}

	public static DeliveryCollection getInstance() {
		if (instance == null) {
			instance = new DeliveryCollection();
		}

		return instance;
	}

	public void addDelivery(Delivery delivery) {
		deliveries.add(delivery);
	}

}
